const mongoose=require('./db.js')
let Xiang=new mongoose.Schema({
    name:String,
    content:String,
    color:{
        type:String,
        default:'green'
    }
})
const Xiangmodel=mongoose.model('xiang',Xiang)
let Ren =new mongoose.Schema({
    is_do:{
        type:Number,
        default:0
    },
    is_checked:{
        type:Boolean,
        default:false
    },
    shijian:String,
    type:{
        type:mongoose.ObjectId,
        ref:'xiang'
    }
})
const Renmodel=mongoose.model('Renmodel',Ren)
module.exports={Xiangmodel,Renmodel}